import { Component, EventEmitter, Output } from '@angular/core';

@Component({
  selector: 'app-pipline-sidebar',
  templateUrl: './pipline-sidebar.component.html',
  styleUrl: './pipline-sidebar.component.scss'
})
export class PiplineSidebarComponent {
  sidebarRightVisible: boolean = false;
  item?: PiplineConifg;
  @Output()
  onHide: EventEmitter<void> = new EventEmitter();

  onShow(item: PiplineConifg) {
    console.log("Pipline", "onShow");
    this.item = item;
    this.sidebarRightVisible = true;
  }
  onSidebarHide() {
    this.onHide.next();
  }
}
